package com.zjf.carpark.entities;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @description:车主
 * @author: 张建飞
 * @createDate: 2019/12/20
 * @version: 1.0
 */
public class Owner {
    private Integer ownerId;//车主id
    private String ownerName;//车主姓名
    private String ownerPwd;//车主密码
    private String ownerTel;//车主电话
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date registTime;//注册时间
    private Boolean deleteState;//删除状态
    private String headImg;//用户头像
    private Integer flag;

    public Owner() {
    }

    public Owner(Integer ownerId, String ownerName, String ownerPwd, String ownerTel, Date registTime, Boolean deleteState, String headImg, Integer flag) {
        this.ownerId = ownerId;
        this.ownerName = ownerName;
        this.ownerPwd = ownerPwd;
        this.ownerTel = ownerTel;
        this.registTime = registTime;
        this.deleteState = deleteState;
        this.headImg = headImg;
        this.flag = flag;
    }

    public Integer getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Integer ownerId) {
        this.ownerId = ownerId;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getOwnerPwd() {
        return ownerPwd;
    }

    public void setOwnerPwd(String ownerPwd) {
        this.ownerPwd = ownerPwd;
    }

    public String getOwnerTel() {
        return ownerTel;
    }

    public void setOwnerTel(String ownerTel) {
        this.ownerTel = ownerTel;
    }

    public Date getRegistTime() {
        return registTime;
    }

    public void setRegistTime(Date registTime) {
        this.registTime = registTime;
    }

    public Boolean getDeleteState() {
        return deleteState;
    }

    public void setDeleteState(Boolean deleteState) {
        this.deleteState = deleteState;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "Owner{" +
                "ownerId=" + ownerId +
                ", ownerName='" + ownerName + '\'' +
                ", ownerPwd='" + ownerPwd + '\'' +
                ", ownerTel='" + ownerTel + '\'' +
                ", registTime=" + registTime +
                ", deleteState=" + deleteState +
                ", headImg='" + headImg + '\'' +
                ", flag=" + flag +
                '}';
    }
}
